'use strict';
import * as types from '../constants/ActionType';
import { fetchPost, fetchPut, fetchGet, fetchDelete } from '../static/js/httprequest';
import { message } from 'antd';
import URL from '../constants/HostConfig';
import { formatUrl } from '../constants/CommonFn';
import { Msg } from '../constants/MsgBox';

/*
export let GetWeather = () => {
  return dispatch => {
    return fetchGet(URL)
      .then(json => {
        if(json.status === '0000'){
          dispatch(triggerAction(json.data,types.GET_Weather))
        } else {
          Msg.error('出错');
        }
      });
  }
}
*/

